/*
// Exepack.NET
// http://www.codeplex.com/exepack
//
// Asmname utility
// Written by Y [10-01-09]
// Copyright (c) 2008-2010 Alexey Yakovlev
*/

using System;
using System.IO;
using System.Text;
using System.Reflection;
using System.IO.Compression;

class Test
{
	static void Main(string[] args)
	{
		if (args.Length != 1)
		{
			Console.WriteLine("syntax: asmname file");
			return;
		}

		// print lower cased and base64-encoded assembly name
		string asmName = Assembly.LoadFrom(args[0]).GetName().ToString().ToLowerInvariant();
		string base64 = Convert.ToBase64String(Encoding.Default.GetBytes(asmName));

		Console.WriteLine("{0}\r\n{1}", asmName, base64);
	}
}
